package com.huangjian.mapper;

import com.huangjian.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper {

    //根据ID查询订单
    Order queryById(@Param("orderid") Integer id);

    //查询全部订单
    List<Order> queryall();
}
